////
////  BaseNetManager.h
////  JD_Project_OC
////
////  Created by snowimba on 16/1/29.
////  Copyright © 2016年 snowimba. All rights reserved.
////
//
//#import "BaseNetManager.h"
//
//static AFHTTPSessionManager* manager = nil;
//@implementation BaseNetManager
//
//+ (AFHTTPSessionManager*)sharedAFManager
//{
//    static dispatch_once_t onceToken;
//    dispatch_once(&onceToken, ^{
//        manager = [AFHTTPSessionManager manager];
//        manager.responseSerializer = [AFHTTPResponseSerializer serializer];
//        // manager.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"text/html",@"application/json", nil];
//    });
//    return manager;
//}
//
//+ (id)Get:(NSString*)path parameters:(NSDictionary*)params completionHandler:(void (^)(id responseObj, NSError* error))complete
//{
//
//    return [[self sharedAFManager] GET:path parameters:params progress:nil success:^(NSURLSessionDataTask* _Nonnull task, id _Nullable responseObject) {
//        complete(responseObject, nil);
//    }
//        failure:^(NSURLSessionDataTask* _Nullable task, NSError* _Nonnull error) {
//            complete(nil, error);
//        }];
//}
//
//+ (id)POST:(NSString*)path parameters:(NSDictionary*)params completionHandler:(void (^)(id responseObj, NSError* error))complete
//{
//    return [[self sharedAFManager] POST:path parameters:params progress:nil success:^(NSURLSessionDataTask* _Nonnull task, id _Nullable responseObject) {
//        complete(responseObject, nil);
//    }
//        failure:^(NSURLSessionDataTask* _Nullable task, NSError* _Nonnull error) {
//            complete(nil, error);
//        }];
//}
//
//@end
